<template>
  <van-tabbar v-model="active" active-color="#ee0a24" inactive-color="#000">
    <van-tabbar-item icon="contact" replace @click="sy()">首页</van-tabbar-item>
    <van-tabbar-item icon="goods-collect-o" replace to="/classify" @click="gofenlei">分类</van-tabbar-item>
    <van-tabbar-item icon="sign" replace @click="mycar()">购物车</van-tabbar-item>
    <van-tabbar-item icon="contact" replace @click="fun()">我的中免</van-tabbar-item>
    <!-- <router-link to="/wd"></router-link> -->
  </van-tabbar>
</template>

<script>
import Vue from "vue";
import { Icon } from "vant";
import { Toast } from "vant";

Vue.use(Icon);
export default {
  data() {
    return {
      active: "",
    };
  },
  methods: {
    gofenlei() {
      this.$router.push("/classify")
    },
    fun() {
      this.$router.push("/mycom")
    },
    sy() {
      this.$router.push("/home")
    },
    mycar() {
      this.$router.push("/goshopi")
    },
  }
}
</script>

<style>

</style>